diff options
Diffstat (limited to 'app/api/data-room/[projectId]/route.ts')
| -rw-r--r-- | app/api/data-room/[projectId]/route.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/api/data-room/[projectId]/route.ts b/app/api/data-room/[projectId]/route.ts index 643dcf0f..2df20fc8 100644 --- a/app/api/data-room/[projectId]/route.ts +++ b/app/api/data-room/[projectId]/route.ts @@ -19,9 +19,11 @@ const createFileSchema = z.object({ // 파일 목록 조회 export async function GET( request: NextRequest, - { params }: { params: { projectId: string } } + { params }: { params: Promise<{ projectId: string }> } ) { try { + const { projectId } = await params; + const session = await getServerSession(authOptions); if (!session?.user) { return NextResponse.json({ error: '인증이 필요합니다' }, { status: 401 }); @@ -44,7 +46,7 @@ export async function GET( // viewMode가 tree이거나 includeAll이 true인 경우 전체 목록 가져오기 const files = await fileService.getFileList( - params.projectId, + projectId, parentId, context, { |
